home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 7_6.lha / 7_6 / 7_6_insh.c < prev    next >
Text File  |  1993-08-08  |  363b  |  17 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. / Insert an entry before the
  6. / current location of the list.
  7. / If curr is not set, insert at
  8. / the beginning of the list.
  9. oid dlist::inserthere(ent a)
  10.  
  11.    if (curr)
  12. curr->insert(new dlink(a));
  13.  
  14.    else
  15. this->insert(a);
  16.  
  17.